package pages;

import finds.Finder;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

/**
 * Created by 13714526025 on 2018/9/19.
 */
public class ScanQrCodePage {
    private Finder finder;
    public ScanQrCodePage(Finder finder){
        this.finder=finder;
    }
    public void  photoClick(){
        WebElement basicEle=finder.findElementById("com.oppo.ohome:id/ll_btn");
        //根据父控件查找子控件
        basicEle.findElement(By.id("com.oppo.ohome:id/ll_album")).click();//找到相册点击进入
    }
    //手电筒点击
    public void flashClick(){
        finder.findElementById("com.oppo.ohome:id/ll_light").click();
    }
    //返回按钮点击
    public void backClick(){
        finder.findElementById("com.oppo.ohome:id/iv_actionbar_back_icon").click();
    }

}
